﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 值类型参数 // 也叫做值传递
{
    class Program
    {
        static void Main(string[] args)
        {
            MyMath mm = new MyMath();
            int myScore = 60;
            int yourScore = 100;
            // 不会交换，因为形式参数的类型是值类型
            mm.Swap(myScore, yourScore);
            Console.WriteLine(myScore);
            Console.WriteLine(yourScore);
        }
    }
}
